"use strict";
// 对象：通过 接口/type 定义类型。
let user = {
    uname: "小王",
    uage: 22,
};
console.log(user);
console.log(user.uname);
console.log(user.uage);
let user1 = {
    uname: "小王",
    uage: 22,
    usex: true,
    address: [1, 2, 3, 4, 5],
    info: {
        m: 10,
        n: 20,
    },
};
console.log(user);
console.log(user.uname);
console.log(user.uage);
let p1 = {
    pname: "10",
    a: 10,
    b: true,
};
// type 和 interface 的区别。
